<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>美兰数据文化馆与图书馆</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/huazhi/lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/huazhi/css/public.css" media="all">
    <link rel="shortcut icon" href="<%=request.getContextPath()%>/huazhi/images/favicon.ico"/>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <table id="voiceAbnormality" lay-filter="voiceAbnormalitys"></table>
        </div>
    </div>
</div>
<script src="<%=request.getContextPath()%>/huazhi/lib/layui-v2.5.5/layui.all.js"></script>
<script>
    layui.use(['table', 'laypage'], function () {
        var $ = layui.$
            , table = layui.table
            ,laypage=layui.laypage;


        var limitcount = 10;
        table.render({
            elem: '#voiceAbnormality'
            , url:  "<%=request.getContextPath()%>/rest/inventory/alertVoice"
            ,title:"异常出库声光报警",
            height: 'full-126'
            , page: false
            , limit: limitcount
            , text: {
                none: '暂无相关数据' //默认：无数据。注：该属性为 layui 2.2.5 开始新增
            }
            , toolbar: '#',
            defaultToolbar: ['filter', 'print']
            , cols: [[
                // {type: 'checkbox'}
                {field: 'number', title: 'ID', width: 70, sort: true,fixed:'left'}
                , {field: 'door', title: '大门', sort: true}
                , {field: 'week', title: '最近一周异常出库', sort: true}
                , {field: 'month', title: '最近一月异常出库', sort: true}
                , {field: 'year', title: '最近一年异常出库', sort: true}
                , {field: 'all', title: '累计异常出库', sort: true}
            ]],
            done: function (res, curr, count) {
            }
        });
    });
</script>
</body>
</html>